package org.example.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.User;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    int updateByuId(@Param("uId") Integer uId, @Param("newStatus") Integer newStatus);

    /**
     * 批量插入数据
     * @param userList
     * @return 返回成功行数
     */
    int batchInsertUsers(List<User> userList);
}